#!/usr/bin/env bash
env=$1
if [ $# -lt 1 ] ; then
    echo "input need 1 arguemnt!"
    exit
fi
echo "env:$env"
mvn clean
mvn compile
mvn exec:java -Dexec.mainClass="com.btioe.yugong.producer.CanalClient" -Dprofile=$env>>~/logs/yugong/yugong_$env.log &